home *** CD-ROM | disk | FTP | other *** search
- 100
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- PrinterInfo
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baPrinterInfo returns information about the installed printers.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baPrinterInfo( Info )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String.
- --- RECORDSEPARATOR ---
- Info is the type of information required.
- --- RECORDSEPARATOR ---
- Can be
- --- RECORDSEPARATOR ---
- "installed"
- --- RECORDSEPARATOR ---
- returns full list of installed printers, drivers and ports
- --- RECORDSEPARATOR ---
- "list"
- --- RECORDSEPARATOR ---
- list of the names of installed printers
- --- RECORDSEPARATOR ---
- "default"
- --- RECORDSEPARATOR ---
- the current default printer
- --- RECORDSEPARATOR ---
- "orientation"
- --- RECORDSEPARATOR ---
- the orientation of the default printer
- --- RECORDSEPARATOR ---
- "paper"
- --- RECORDSEPARATOR ---
- the current paper size of the default printer
- --- RECORDSEPARATOR ---
- "papers"
- --- RECORDSEPARATOR ---
- the list of paper sizes supported by the default printer
- --- RECORDSEPARATOR ---
- "papername"
- --- RECORDSEPARATOR ---
- the name of the current paper of the default printer
- --- RECORDSEPARATOR ---
- "papernames"
- --- RECORDSEPARATOR ---
- the list of paper names of the default printer
- --- RECORDSEPARATOR ---
- "paperlength"
- --- RECORDSEPARATOR ---
- the length of the paper in the default printer in 1/1000 mm
- --- RECORDSEPARATOR ---
- "paperwidth"
- --- RECORDSEPARATOR ---
- the width of the paper in the default printer in 1/1000 mm
- --- RECORDSEPARATOR ---
- "copies"
- --- RECORDSEPARATOR ---
- the number of copies to print
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Depends on Info type.
- --- RECORDSEPARATOR ---
- Xtra: "installed", "list", "papers", "papernames" return a list;
- --- RECORDSEPARATOR ---
- "default", "orientation", "paper", "papername" return a string;
- --- RECORDSEPARATOR ---
- "paperlength", "paperwidth" and "copies" return an integer.
- --- RECORDSEPARATOR ---
- UCD: always returns a string.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set printer = baPrinterInfo( "default" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- printerList := baPrinterInfo( "list" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The "installed" info type returns a list (Xtra) or a string (UCD) - one list element or
- --- RECORDSEPARATOR ---
- line for each printer. Each element will consist of the printer name, then the driver,
- --- RECORDSEPARATOR ---
- then the port, all separated by commas. eg.
- --- RECORDSEPARATOR ---
- ["EPSON Stylus COLOR 400,EPS400,LPT1:", "Acrobat
- --- RECORDSEPARATOR ---
- PDFWriter,PDFWRITR,DISK:"] (Xtra)
- --- RECORDSEPARATOR ---
- "EPSON Stylus COLOR 400,EPS400,LPT1:\rAcrobat
- --- RECORDSEPARATOR ---
- PDFWriter,PDFWRITR,DISK:" (UCD)
- --- RECORDSEPARATOR ---
- The "list" Info type returns a list with just the printer names. eg
- --- RECORDSEPARATOR ---
- ["EPSON Stylus COLOR 400", "Acrobat PDFWriter"]
- --- RECORDSEPARATOR ---
- The "orientation" Info type will return "Landscape", "Portrait" or "Unknown".
- --- RECORDSEPARATOR ---
- The "paper" Info type returns the size of the selected paper. It will be one of the
- --- RECORDSEPARATOR ---
- following values:
- --- RECORDSEPARATOR ---
- "Letter", "LetterSmall", "Tabloid", "Ledger", "Legal", "Statement", "Executive", "A3",
- --- RECORDSEPARATOR ---
- "A4", "A4Small", "A5", "B4", "B5", "Folio", "Quarto", "10x14", "11x17", "Note",
- --- RECORDSEPARATOR ---
- "Envelope9", "Envelope10", "Envelope11", "Envelope12", "Envelope14", "CSheet",
- --- RECORDSEPARATOR ---
- "DSheet", "ESheet", "EnvelopeDL", "EnvelopeC5", "EnvelopeC3", "EnvelopeC4",
- --- RECORDSEPARATOR ---
- "EnvelopeC6", "EnvelopeC65", "EnvelopeB4", "EnvelopeB5", "EnvelopeB6",
- --- RECORDSEPARATOR ---
- "EnvelopeItaly", "EnvelopeMonarch", "EnvelopePersonal", "FanFoldUS",
- --- RECORDSEPARATOR ---
- "FanFoldStdGerman", "FanFoldLegalGermany", "User", "Unknown".